from django.urls import path, include
from rest_framework import routers
from myuser import views

# 将自定义视图注册到restframework中管理器中
router = routers.DefaultRouter()
router.register(r'myusers', views.UserViewSet)
router.register(r'myroles', views.RoleViewSet)

urlpatterns = [
  path('', include(router.urls)),
]